// import Vue from 'vue'
// import Router from 'vue-router'
import { createRouter,  createWebHashHistory } from 'vue-router';

// import Home from '../views/Home.vue'
// import PscgoCard from '../views/PscgoCard.vue'
// import Index from '../views/Index.vue'
// import DownloadList from '../views/DownloadList.vue'


// Vue.use(Router)
// ...路由配置
const router = createRouter({
    history: createWebHashHistory(),
    routes: [{
        path: '/',
        name: 'Index',
        component: () => import(/* webpackChunkName: "page1" */ '../views/Index.vue')
        // component: Index
    },
    {
      path: '/home',
      name: 'Home',
      component: () => import(/* webpackChunkName: "page1" */ '../views/Home.vue')
      // component: Home
    },
    {
        path: '/card',
        name: 'PscgoCard',
        component: () => import(/* webpackChunkName: "page1" */ '../views/PscgoCard.vue')
        // component: PscgoCard
    },
    {
        path: '/download',
        name: 'DownloadList',
        component: () => import(/* webpackChunkName: "page1" */ '../views/DownloadList.vue')
        // component: DownloadList
    },
    {
      path: '/:catchAll(.*)', // 页面不存在的情况下会跳到404页面
      // component: Index,
      component: () => import(/* webpackChunkName: "page1" */ '../views/Index.vue'),
      name: "notfound",
      hidden: true
    }
  ] // 你的路由配置
  });

export default router